package com.xzit.day04.mapper;

import com.xzit.day04.entity.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
@Mapper
public interface EmpMapper {
    int insert(Emp emp);
    int deleteById(int id);
    int deleteByCondition(Emp emp); // 用于条件删除
    int update(Emp emp);
    Emp findById(int id);
    List<Emp> findAll();
    List<Emp> findByCondition(Emp emp); // 用于条件查询
}
